package cn.fyl.system.service.impl;

import cn.fyl.basic.service.impl.BaseServiceImpl;
import cn.fyl.system.domain.SystemDetail;
import cn.fyl.system.domain.SystemType;
import cn.fyl.system.mapper.SystemDetailMapper;
import cn.fyl.system.service.ISystemDetailService;
import cn.fyl.system.service.ISystemTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

@Service
//查询的方法比较多，使用查询的事务配置
//只读，事务传播机制=SUPPORTS，有我就用，没有事务就不用
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class SystemDetailServiceImpl extends BaseServiceImpl<SystemDetail> implements ISystemDetailService {

    @Autowired
    private SystemDetailMapper systemDetailMapper;

    @Override
    public List<SystemDetail> loadByTypeId(long id) {



        return systemDetailMapper.loadByTypeId(id);
    }
}
